function a(b: string) {
    return b + '最帅'
}
let c = 'huazizhanye'
console.log(a(c))

// 接口
interface wzs {
    str1:string,
    str2:number
}
class arr {
    constructor(a:wzs){
        console.log(a);
    }
}
let text = new arr({
    str1:'wzs',
    str2:18
})

// 普通声明数组
let arr1:number[] = [1,2,3]
// 泛型定义数组
let arr2:Array<string> = ['0', '1']
let arr3:Array<number> = [1, 2]
console.log(arr3,arr2);

// 元组定义数组
let arr4:[string,number,boolean] = ['1', 2, true]
console.log('元祖定义，一对一', arr4);

// 枚举
enum Color {
    red,
    black,
    yellow
}
let col:Color = Color.red
console.log(col);
console.log(Color[0]);
